export default [
  {
    path: "/customer",
    redirect: "/customer/list",
    meta: {
      icon: "ri:user-3-line",
      // showLink: false,
      title: "客户管理",
      rank: 2
    },
    children: [
      {
        path: "/customer/list",
        name: "customerManager",
        component: () =>
          import("@/views/customer/CustomerManagement/index.vue"),
        meta: {
          title: "客户管理",
          roles: ["admin"]
        }
      },
      {
        path: "/customer/segmentation",
        name: "customerSegmentation",
        component: () =>
          import("@/views/customer/CustomerManagement/segmentation.vue"),
        meta: {
          title: "客户分类",
          roles: ["admin"]
        }
      },
      {
        path: "/customer/History",
        name: "browsingHistory",
        component: () =>
          import("@/views/customer/CustomerManagement/browsingHistory.vue"),
        meta: {
          title: "浏览记录",
          roles: ["admin"]
        }
      },
      {
        path: "/customer/eidt",
        name: "customerEide",
        component: () => import("@/views/customer/CustomerManagement/edit.vue"),
        meta: {
          title: "客户编辑",
          roles: ["admin"],
          showLink: false
        }
      },
      {
        path: "/customer/add",
        name: "customerAdd",
        component: () => import("@/views/customer/CustomerManagement/add.vue"),
        meta: {
          title: "客户添加",
          roles: ["admin"],
          showLink: false
        }
      },
      {
        path: "/customer/SH",
        name: "customerSH",
        component: () =>
          import("@/views/customer/CustomerManagement/shipmentHistory.vue"),
        meta: {
          title: "出货记录",
          showLink: false,
          roles: ["admin"]
        }
      }
    ]
  }
] satisfies Array<RouteConfigsTable>;
